MCKey
TheMCKey
function handles keyboard events for a movie controller. You can call this function only if you have enabled keystroke processing in the controller. By default, keystroke processing is turned off when you create a movie controller. You can enable and disable keystroke processing using themcActionSetKeysEnabled
action with theMCDoAction
function (described on page 2-46).
pascal ComponentResult MCKey (MovieController mc, char key, long modifiers);
mc
- Specifies the movie controller for the operation. You obtain this
identifier from the Component Manager'sOpenComponent
orOpenDefaultComponent
function, or from theNewMovieController
function (described on page 2-28).key
- Specifies the keystroke. You obtain this value from the event structure.
modifiers
- Specifies modifier flags for the event. You obtain this value from the event structure.
DESCRIPTION
TheMCKey
function returns a value indicating whether it handled the event. The function sets the returned value to 1 if it handles the event. The function sets the returned value to 0 if it does not handle the event. In this case, your application is responsible for the event.
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help